package org.ytor.core.sqlflow.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.ytor.core.sqlflow.log.SqlLog;

/**
 * created by yangtong on 2025/8/13 19:46:03
 * <br/>
 */
@Data
@Component
@ConfigurationProperties(prefix = "system.sql-flow")
public class SqlFlowProperty {

    /**
     * repository类所在路径
     */
    private String repositoryLocation;

    /**
     * SQL 段落所在路径
     */
    private String sqlSegmentLocation;

    /**
     * 日志实现
     */
    private Class<? extends SqlLog> sqlLogImpl;

    /**
     * 如果实体类对应的表不存在，是否创建
     */
    private Boolean createTableIfNotExist;

}
